package com.zbkj.common.model.course;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 课程视频表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_course_video")
@ApiModel(value="CourseVideo对象", description="课程视频表")
public class CourseVideo implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "视频ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "关联的课程ID(商品ID)")
    private Integer courseId;

    @ApiModelProperty(value = "课时编号")
    private Integer episodeNumber;

    @ApiModelProperty(value = "课时标题")
    private String title;

    @ApiModelProperty(value = "视频URL")
    private String videoUrl;

    @ApiModelProperty(value = "视频封面图")
    private String coverImage;

    @ApiModelProperty(value = "视频时长(秒)")
    private Integer duration;

    @ApiModelProperty(value = "课时描述")
    private String description;

    @ApiModelProperty(value = "是否免费预览(0否1是)")
    private Boolean freePreview;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "状态(0隐藏1显示)")
    private Boolean status;

    @ApiModelProperty(value = "添加时间")
    private Integer addTime;

    @ApiModelProperty(value = "更新时间")
    private Integer updateTime;

    @ApiModelProperty(value = "是否删除")
    private Boolean isDel;
}